package com.sa.commons.exception;

import java.util.Map;

import org.apache.commons.logging.Log;

import com.sa.commons.exception.inter.ExceptionHandler;



public class ExceptionHandlerImpl implements ExceptionHandler{
	public void deal(Exception e,Map<String,String> errors,Log log){
		if (e instanceof DBDataErrorException) {
			log.error(e.getMessage(), e);
		}else {
			log.error("操作出错", e);
		}
	}
}
